<template>
	<view>
		<!-- video不支持 flv -->
		<!-- video只支持 m3u8，且ios黑屏 -->
		<!-- <video :src="m3u8Url" autoplay @error="playError"></video> -->
		<!-- <video :src="m3u8VideoUrl" autoplay></video> -->


		<!-- live-player 需要开通资质 -->
		<!-- <live-player src="wss://www.video.huanchenxinnengyuan.com/rtp/34020000001320000003_34020000001320000003.live.flv" autoplay @statechange="statechange" @error="error"  @netstatus="netstatus" style="width: 300px; height: 225px;" /> -->

		<!-- web-view m3u8和flv都支持，Android和ios都能播放 ✔ -->
		<!-- <web-view src="https://www.video.huanchenxinnengyuan.com/#/channelList/34020000001320000003/0"></web-view> -->
		<!-- <web-view :src="flvUrl"></web-view> -->

	</view>
</template>

<script>
	export default {
		data() {
			return {
				m3u8Url: "https://www.tax.huanchenxinnengyuan.com/rtp/34020000001320000003_34020000001320000003/hls.m3u8",
				m3u8VideoUrl: "https://www.video.huanchenxinnengyuan.com/rtp/34020000001320000002_34020000001320000002/hls.m3u8",
				flvUrl: "https://www.video.huanchenxinnengyuan.com/#/play/wasm/wss%3A%2F%2Fwww.video.huanchenxinnengyuan.com%3A443%2Frtp%2F34020000001320000002_34020000001320000002.live.flv"
			}
		},
		methods: {
			playError(e) {
				console.log(" playError ------------------------", e);
			},
			// 不支持
			// statechange(e) {
			// 	console.log('live-player code:', e.detail.code)
			// },
			// netstatus(e) {
			// 	console.log('live-player netstatus:', e.detail)
			// },
			// error(e) {
			// 	console.error('live-player error:', e.detail.errMsg)
			// }
		}
	}
</script>

<style>

</style>